package com.manage.service;

import com.manage.pojo.Shoppings;
import com.manage.pojo.operation.ShoppingsList;
import com.manage.utils.PagedResult;

public interface ShoppingsService {

    /**
     * @Description: 判断购物车id是否存在
     */
    public boolean queryShoppingsIsExit(String shoppingId);

    /**
     * @Description: 购物车添加保存
     */
    public void saveShoppings(Shoppings shopping);

    /**
     * @Description: 购物车删除
     */
    public void shoppingDelete(String shoppingId);

    /**
     * @Description: 根据购物车id查询购物车列表
     */
    public ShoppingsList queryShoppingsInfoByShoppingId(String shoppingId);

    /**
     * @Description: 查询所有购物车列表
     */
    public PagedResult queryAllShoppings(Integer page, Integer pageSize);

    /**
     * @Description: 根据用户id查询购物车列表
     */
    public PagedResult queryShoppingsInfoByUserId(Integer page, Integer pageSize, String userId);

    /**
     * @Description: 根据鞋id查询购物车列表
     */
    public PagedResult queryShoppingsInfoByShoesId(Integer page, Integer pageSize, String shoesId);

}
